﻿using MiniFox.Components;
using Platform.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Platform.Core.Providers
{
    [AutoRegister, SpareComponent(typeof(WatermarkProvider))]
    public interface IWatermarkProvider
    {
        Watermark LoadWatermarkModel();

        void SaveWatermarkModel(Watermark watermarkModel);
    }

    internal class WatermarkProvider : IWatermarkProvider
    {
        public Watermark LoadWatermarkModel()
        {
            return new Watermark
            {
                CanvasHeight = 100,
                CanvasWidth = 200,
                FontColorValue = "#808080",
                FontSize = 28,
                FontStyle = System.Drawing.FontStyle.Bold,
                Height = 30,
                Width = 160,
                TextHeight = 30,
                TextWidth = 160,
                RotateX = 0,
                RotateY = 0,
                RotateAngle = -20,
                X = 0,
                Y = 60
            };
        }

        public void SaveWatermarkModel(Watermark watermarkModel)
        {
            throw new NotImplementedException();
        }
    }
}
